package com.dao;

import com.entity.*;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2019/2/13 0013.
 */
public interface ManageDao {

    List<AdvicesInfo> findAdvicesList(@Param("page") Integer page, @Param("length") Integer length);

    int findAdvicesListCount();

    int setAdvices(@Param("id") Integer id);

    List<Teacherinfo> findAll(@Param("page") Integer page, @Param("length") Integer length, @Param("search") String search);

    int findCount(@Param("search") String search);

    List findSubjectName(@Param("userId")Integer userId);

    List<LoginInfo> findUserList(@Param("page") Integer page, @Param("length") Integer length, @Param("search") String search);

    int findParentMyRelease(@Param("id")Integer id);

    int findUserListCount(@Param("search") String search);

    List<StudentInfo> houduanMyRelease(@Param("userId") Integer userId);

    List<CertificationInfo> findCertificationList(@Param("page")Integer page,@Param("length")Integer length,@Param("search")String search,@Param("type")Integer type);

    int findCertificationListCount(@Param("search")String search,@Param("type")Integer type);

    int setCertification(@Param("id") Integer id,@Param("type")Integer type);

    int updatePidMoney(@Param("pid")Integer pid);

    int insertBill(@Param("pid")Integer pid, @Param("uuid")String uuid, @Param("money")BigDecimal money,@Param("type")Integer type,@Param("description")String description);

    List<BillInfo> findUserBillList(@Param("page")Integer page,@Param("length")Integer length,@Param("search")String search);

    int findUserBillListCount(@Param("search")String search);

    List<Teacherinfo> findTeacherValueList(@Param("page")Integer page,@Param("length")Integer length,@Param("search")String search);

    int findTeacherValueListCount(@Param("search")String search);

    int setTeacherValue(@Param("value")Integer value,@Param("id")Integer id);

    List<HRewardInfo> findRewardList(@Param("page")Integer page,@Param("length")Integer length,@Param("search")String search);

    int findRewardListCount(@Param("search")String search);

    List<HShareInfo> findShareList(@Param("page")Integer page,@Param("length")Integer length,@Param("search")String search);

    int findShareListCount(@Param("search")String search);

    int findUserType1();

    int findUserType2();

    List<HRecordInfo> findMidwayRefund(@Param("page")Integer page,@Param("length")Integer length,@Param("search")String search);

    int findMidwayRefundCount(@Param("search")String search);

    List<HRecordInfo> findRefundRecordList(@Param("page")Integer page,@Param("length")Integer length,@Param("search")String search);

    int findRefundRecordListCount(@Param("search")String search);

    List<HRecordInfo1> findTransactionList(@Param("page")Integer page,@Param("length")Integer length,@Param("search")String search);

    int findTransactionListCount(@Param("search")String search);

    List<HTeacherInfo> findTeacherMoneyList(@Param("page")Integer page,@Param("length")Integer length,@Param("search")String search);

    int findTeacherMoneyListCount(@Param("search")String search);

    int findRecordId(@Param("id")Integer id);

    int deleteRefundRecord(@Param("id")Integer id);

    int findUserId(@Param("id")Integer id);

    String findUserType(@Param("id")Integer id);

    int updatePromotionAcStatus(@Param("userId")Integer userId,@Param("pid")Integer pid);

    int updateUserMoney(@Param("userId")Integer userId,@Param("money")BigDecimal money);

    int findIfMoneyIsSame(@Param("userId")Integer userId,@Param("lyMoney")BigDecimal lyMoney);

    int resetTeacherMoney(@Param("userId")Integer userId);

    List<Date> findStatistics();

    Integer findUserIdByPhone(@Param("phone")String phone);

    int insertRecord(MissOrderInfo missOrderInfo);

    int updateUserMoney1(@Param("id")Integer id,@Param("totalPrice")BigDecimal totalPrice);

}
